package com.yungu.swift.system.sys.dao;


import com.yungu.swift.base.mapper.IMapper;
import com.yungu.swift.system.sys.model.dto.SysResourceDto;
import com.yungu.swift.system.sys.model.dto.SysUserDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * SysUserMapper数据库操作接口类
 **/

public interface SysUserMapper extends IMapper<SysUserDto> {
    /**
     * 查询某个后台用户拥有的权限资源
     *
     * @param userUuid String
     * @return List<SysResourceDto>
     */
    List<SysResourceDto> queryUserAuthority(@Param("userUuid") String userUuid);

    /**
     * 批量插入
     *
     * @param sysUserDtos List
     * @return
     */
    int batchInsert(List<SysUserDto> sysUserDtos);
}